#define _CRT_SECURE_NO_WARNINGS  1
#pragma warning(disable:6031)
#include<stdio.h>

int main()
{
	double a;
	scanf("%lf", &a);
	printf("%f", a);
	printf("\n%.5f", a);
	printf("\n%e", a);
	printf("\n%g", a);
	return 0;
}